/**
 * 
 */
package org.rvk.vms.dal.model;

import java.io.Serializable;

/**
 * Event Status
 * @author Ashish Kumar Sinha <aksinha.mail@gmail.com>
 *
 */
public enum EventStatus implements Serializable {
	
	PROPOSED, CONFIRMED, COMPLETED, CANCELLED;
	
	public static EventStatus get(String status){
		if(status == null) { return null; }
		
		switch (status) {
		case "PROPOSED":
			return PROPOSED;
			
		case "CONFIRMED":
			return CONFIRMED;
			
		case "COMPLETED":
			return COMPLETED;
			
		case "CANCELLED":
			return CANCELLED;

		default:
			return null;
		}
	}
}
